﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using DataLib.Accounts.Bus;

namespace Ewts.Storage
{
    public partial class Directsell : System.Web.UI.Page
    {
     
        protected void Page_Load(object sender, EventArgs e)
        {
        
            if (!Page.IsPostBack)
            {
               bindData();
             }
        }

        protected void bindData()
        {
            User curUser = new User();
            curUser = (User)Session["UserInfo"];
           
            string city = "";
  
            if (curUser.UserType == "AA")
            {
                city = curUser.CompanyCity;
             }
            DataLib.BLL.CJOItem bll = new DataLib.BLL.CJOItem();
            DataTable dt = bll.GetDirectSellList(city);
            reptDirectsell.DataSource = dt;
            reptDirectsell.DataBind();

        }

 
    }
}